<div class="container-fluid all">
		<div class="sidebar">
			<div id="myMsg">
				<h3 align="center">我的信息</h3>
				<div style="margin-left: 50px;">
				    <button id="start">开始营业</button>
					<button  id="end">打烊</button>
				</div>
				<div>
					<h5 align="center" id="porName"></h5>
					<h5 align="center" id="porAddr"></h5>
				</div>
				<div>
					<img id="portrait" src="{{vm.merchant.portait}}"
						style="height: 200px; width: 200px; margin-left: 10px;" />
				</div>
			</div>
			<ul class="nav" style="margin-top: 20px">
				<li class="has-sub"><a href="javascript:void(0);"><span
						style="align-content: center">店铺管理</span><i
						class="fa fa-caret-right fa-fw pull-right"></i></a>
					<ul class="sub-menu">
						<li><a href="./#!/orderlist" id="0" class="check"><i
								class="fa fa-circle-o fa-fw"></i>&nbsp;全部订单</a></li>
						<li><a href="./#!/unreceivedOrders" id="1" class="check"><i
								class="fa fa-circle-o fa-fw"></i>&nbsp;待接订单</a></li>
						<li><a href="./#!/receivedOrders" id="2" class="check"><i
								class="fa fa-circle-o fa-fw"></i>&nbsp;已接订单</a></li>
						<li><a href="./#!/refusedOrders" id="2" class="check"><i
								class="fa fa-circle-o fa-fw"></i>&nbsp;被拒订单</a></li>
						<li><a href="./#!/deliveringOrders" id="2" class="check"><i
								class="fa fa-circle-o fa-fw"></i>&nbsp;配送中订单</a></li>
						<li><a href="./#!/finishedOrders" id="2" class="check"><i
								class="fa fa-circle-o fa-fw"></i>&nbsp;已完成订单</a></li>
					</ul>
				</li>
			</ul>
																							
		</div>
        <div style="margin-left:10px;margin-right:10px">
        <table class="table table-bordered table-hover">
            <thead>
                <tr>
					<th>订单号</th>
                    <th>订单客户</th>
                    <th>下单时间</th>
                    <th>配送地址</th>
                    <th>状态</th>
                    <th>接单</th>
                    <th>拒单</th>
                    <th>配送</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="order in vm.orderlist">
					<td>{{order._id}}</td>
					<td>{{order.client.cname}}</td>
					<td>{{order.otime}}</td>
					<td>{{order.deliverInfo.addr}}</td>
					<td ng-if="order.ostate==='0'">未接单</td>
					<td ng-if="order.ostate==='1'">已接单</td>
					<td ng-if="order.ostate==='2'">拒接单</td>
					<td ng-if="order.ostate==='3'">配送中</td>
					<td ng-if="order.ostate==='4'">已完成</td>
					<td><button ng-disabled="order.ostate != '0'" ng-click="vm.receiveOrder(order)" class="order btn btn-default orderTemplate">接单</button></td>
					<td><button ng-disabled="order.ostate != '0'" ng-click="vm.refuseOrder(order)" class="order btn btn-default orderTemplate">拒单</button></td>
					<td><button ng-disabled="order.ostate != '1'" ng-click="vm.deliverOrder(order)" class="order btn btn-default orderTemplate">配送</button></td>
                </tr>
        </tbody>
    </table>
    </div>

	</div>

	 <!-- 拉黑拉白模态框 -->

	<div class="modal fade" id="black" tabindex="-1" role="dialog" data-backdrop="static">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-body">
					<div style="color: red"><h1>您暂时没有操作权限</h1></div>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal-dialog -->
	</div>
	<!-- /.modal -->